package cn.juque.workflow.api.dto.taskinfo;

import cn.juque.common.abstracts.AbstractRequestDTO;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Size;

/**
 * @author juque
 * @version 1.0.0
 * <ul>
 *     <li>ProcessInstanceDetailDTO</li>
 * </ul>
 * @date 2023-02-06 11:33:38
 **/
@Data
public class ProcessInstanceDetailByTaskSearchDTO extends AbstractRequestDTO {

    /**
     * 流程定义ID
     */
    @NotEmpty(message = "流程key不能为空")
    @Size(message = "流程key不能超过{max}个字符", max = 64)
    private String processDefinitionKey;

    /**
     * 任务主键
     */
    @Size(message = "任务主键不能超过{max}个字符", max = 64)
    private String taskId;
}
